<?php echo $this->element('menu', array("active" => "10.a"));?>
<ul class="breadcrumb">
        <li>
          <?php echo $this->Html->link(__('Staff  ', true), array('action' => 'index'), array('class'=>'fist_link'));?>
        </li>
        <li>
          <a href="#" >Staff  </a>
        </li>
      </ul>
	<div id="content" class="staffs index">	
	<?php echo $this->Html->link(__('Add staff', true), array('action' => 'add'), array('class'=>'bt')); ?>	
	<div class="table table_p_15_2 boder">
	  <table width="100%"  cellpadding="0" cellspacing="0" align="right">
		<thead>
		  <tr>
			<td class="first">Name</td>
			<td >User type</td>
			<td valign="top" ></td>
		  </tr>
		</thead>
			<!--<th><?php echo $this->Paginator->sort('id');?></th>-->	
	<?php
	$i = 0;
	foreach ($staffs as $staff):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tbody>
		  <tr>			
	<tr<?php echo $class;?>>		
		<td><?php echo $staff['Staff']['first_name'].' '.$staff['Staff']['last_name']; ?>&nbsp;</td>		
		<td>
			<?php echo $this->Html->link($staff['StaffType']['title'], array('controller' => 'staff_types', 'action' => 'edit', $staff['StaffType']['id'])); ?>
		</td>		
		<td valign="top" align="right" class="actions">
			<?php //echo $this->Html->link(__('View', true), array('action' => 'view', $staff['Staff']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $staff['Staff']['id'])); ?>
			&nbsp;|&nbsp;
			<?php echo $this->Html->link(__('Remove', true), array('action' => 'delete', $staff['Staff']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $staff['Staff']['id'])); ?>
		</td>	
		  </tr>		 
		</tbody>
<?php endforeach; ?>
	  </table>
	</div>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>  